<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>按要求查询名片</title>
<style>
* {
	margin: 0px;
	padding: 0px;
}

.from {
	overflow: hidden;
	position: relative;
}

.bgc {
	width: 100%;
}

.submit {
	position: absolute;
	z-index: 9;
	left: 0;
	top: 0;
	right: 0;
	bottom: 0;
	margin: auto;
	margin-top: 100px;
	width: 500px;
	height: 500px;
	background: rgba(255, 255, 255, 0.2);
	border-radius: 10px;
	color: #fff;
	display: flex;
	flex-direction: column;
}

.font {
	font-size: 22px;
}

.inputs {
	height: 35px;
	width: 300px;
	border-radius: 5px;
	border: none;
	background-color: #eee;
	color: #666;
	padding-left: 20px;
}

.btn_submit {
	align-self: center;
	overflow: hidden;
	position: relative;
}

.btn {
	border: none;
	width: 80px;
	height: 40px;
	color: #fff;
	border-radius: 5px;
	background: #999;
	margin-top: 40px;
}

.btn:hover {
	background: #666;
}

.resett {
	border: none;
	width: 80px;
	height: 40px;
	color: #fff;
	border-radius: 5px;
	background: #FFD204;
	margin-left: 10px;
}
</style>
</head>
<body>

	<%
		String username = (String) session.getAttribute("username");
	String userpwd = (String) session.getAttribute("userpwd");
	%>
	<div class="from">
		<img class="bgc" src="namecard.jpg" alt="">
		<div class="submit" align="center">
			<h1>
				请输入要<font color="red">查询</font>名片的序号
			</h1>
			<form action="search" method="post">
				<table border="0" width="450" height="400">
					<tr>
						<td class="font">序号</td>
						<td><input class="inputs" type="text" name="id"></td>
					</tr>
					<tr>
						<td class="font">登录账号</td>
						<td><input class="inputs" type="text" name="username"
							readonly unselectable="on" value=<%=username%>></td>
					</tr>

					<tr>
						<td class="font">密码</td>
						<td><input class="inputs" type="text" name="userpwd" readonly
							unselectable="on" value=<%=userpwd%>></td>
					</tr>
					<tr align="center">
						<td colspan="2"><input class="btn" type="submit" value="查询">&nbsp;&nbsp;&nbsp;
							<input class="resett" type="reset" value="取消"></td>
					</tr>
				</table>
			</form>
		</div>
	</div>
</body>
</html>